import request from '@/utils/myAioxs';

//获取用户的播放地址等信息
export function getCoursewareInfo(data) {
  return request({
    url: `/course-learn/v1/user-courseware-info`,
    method: 'post',
    data
  })
}
export function playCourseware(data) {
  return request({
    url: `course-learn/v1/play-courseware`,
    method: 'post',
    data
  })
}

export function previewCoursewareInfo(data) {
  return request({
    url: `/course/v1/preview-courseware-detail`,
    method: 'post',
    data
  })
}

export function setCoursewareInfo(data) {
  return request({
    url: `/course-learn/v1/courseware/beat`,
    method: 'post',
    data
  })
}





